package com.anyou.quartz.task;

import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import com.anyou.mall.goo.service.IGoodsCouponService;

/**
 * 商品优惠券定时任务
 * @author xq
 */
@Slf4j
@Component("goodsCouponTask")
public class GoodsCouponTask {
    @Autowired
    private IGoodsCouponService goodsCouponService;

    public  void couponPastDue(){
        log.info("开始执行判断优惠券是否过期方法");
        goodsCouponService.updateCouponPastDue();
        log.info("结束执行判断配送预警订单问题订单方法");
    }
}
